.posts {
    position: relative;
    overflow: hidden;
    margin-bottom: -5001px;
    padding-bottom: 5000px;
    @include boxSizing(border-box);
}

.post {
    position: relative;
    padding: 15px;
    border-bottom: 1px solid $bd-color;
    @include boxSizing(border-box);
    
    h5 {
        padding: 0;
        margin: 0;
        font-size: 18px;
        line-height: 26px;
        
        a {
            color: $black;
            @include transition(0.2s);
            &:hover {
                color: $main-color;
            }
        }
    }
    .post-meta {
        padding: 0; 
        font-size: 13px;
        line-height: 20px;
        color: $gray;
        a {
            color: $gray;
            font-weight: 700;
            @include transition(0.2s);
            &:hover {
                color: $main-color;
            }
        }
        abbr {
            border: none;
        }
    }
    .post-img {
        padding: 10px 0px 20px;
    }
    img {
        width: 100%;
        vertical-align: top;
    }
    .go-to-post {
        display: inline-block;
        position: relative;
        .text {
            font-size: 13px;
            padding: 1px 7px 0;
            line-height: 19px;
            color: #FFF;
            background-color: $main-color;
        }
        .triangle {
            border-left: 10px solid $main-color;
            border-top: 10px solid transparent;
            border-bottom: 10px solid transparent;
            position: absolute;
            left: 100%;
            top: 0;
        }
    }
    
    .post-content {
        h6 {
            font-size: 18px;
            margin: 20px 0px;
        }
        p {
            font-size: 13px;
            padding: 0px 0px 10px;
        }
        iframe {
            width: 100%;
        }
        img {
            display: block;
            width: 100% !important;
        }
        a {
            color: $main-color;
            &:hover, &:focus {
                text-decoration: underline;
            }
        }
    }
    
    &.full {
        border-top: 4px solid $main-color;
    }
    
    .post-social-block {
        margin: 25px -15px -25px;
        padding: 35px 15px;
        text-align: center;
        border-top: 1px solid $bd-color;
        p {
            font-size: 20px;
        }
        .twitter-hashtag {
            color: $tw-color;
        }
        .twitter-follow-btn {
            display: inline-block;
            margin-top: 20px;
            border: 1px solid $tw-color;
            padding: 5px 10px;
            min-width: 150px;
            color: $tw-color;
            background-color: #FFF;
            
            font-family: 'Open Sans', sans-serif;
            font-size: 14px;
            line-height: 28px;
            font-weight: 700;
            text-transform: capitalize;
            text-align: center;
            
            @include borderRadius();
            @include transition(0.3s);  
            &:hover, &:focus {
                color: #FFF;
                background-color: $tw-color;
            }
        }
    }
    
    .post-footer {
        margin: 25px -15px -15px;
        padding: 15px 20px;
        border-top: 1px solid $bd-color;
        width: 100%;
        overflow: hidden;
        .tags {
            font-size: 14px;
            max-width: 350px;
            margin-bottom: 15px;
            .label {
                color: $gray;
            }
            ul {
                display: inline;
            }
            li {
                margin: 5px 5px 5px 0px;
                display: inline-block;
                a {
                    padding: 2px 5px;
                    color: #FFF;
                    line-height: 20px;
                    background-color: $main-color;
                    text-transform: capitalize;
                    @include transition(0.2s);
                    &:focus, &:hover {
                        background-color: $black;
                    }
                }
            }
        }
        .post-share {
            span {
                font-size: 14px;
                color: $gray;
                vertical-align: middle;
            }
            a {
                padding: 0 5px;
                font-size: 20px;
                vertical-align: middle;
                @include transition(0.2s);
                &.tw:hover, &.tw:focus { color: $tw-color; }
                &.pin:hover, &.pin:focus { color: $pin-color; }
                &.fb:hover, &.fb:focus { color: $fb-color; }
                &.ins:hover, &.ins:focus { color: $ins-color; }
            }
        }
    }
}

.empty-search {
    padding: 20px;
    margin: 0;
    .search-term {
        color: $main-color;
    }
}

#masonry {
    position: relative;
    display: none;
}
.loaded {
    #masonry {
        display: block;
    }
}

.posts-related-header {
    padding: 15px;
    border-bottom: 4px solid $main-color;
    text-align: center;
    h3 {
        font-family: 'Open Sans', sans-serif;
        margin: 0;
        font-size: 30px;
        line-height: 40px;
        font-weight: 700;
        text-transform: uppercase; 
   }
}

.posts-border {
    display: none;
    position: absolute;
    border-right: 1px solid $bd-color;
    width: 50%;
    top: 0;
    bottom: 0;
    @include boxSizing(border-box);
}

.grid-sizer {
    width: 100;
}

@media screen and (min-width: 600px) {
    .posts-border {
        display: block;
    }
    .grid-sizer {
        width: 50%;
    }
    .post {
        .post-social-block {
            margin: 25px -25px -25px;
            padding: 35px 25px;
        }
        .post-footer {
            margin: 25px -25px -25px;
            padding: 20px 25px;
            .tags {
                float: left;
                margin-bottom: 0;
            }
            .post-share {
                float: right;
            }
        }
    }
    .post.half {
        width: 50%;
    }
    .post.big {
        padding: 25px;
        h5 {
            font-size: 24px;
            line-height: 30px;
        }
        .post-content {
            p {
                font-size: 16px;
            }
        }
        .go-to-post {
            .text {
                font-size: 16px;
                padding: 5px 15px;
                line-height: 20px;
            }
            .triangle {
                border-left-width: 15px;
                border-top-width: 15px;
                border-bottom-width: 15px;
                position: absolute;
                left: 100%;
                top: 0;
            }
        }
    }
}